#include "StdAfx.h"
#include "libs\include\RFLanDevice.h"
#include "libs\include\RFLanDetector.h"

using namespace RFDevice;

extern "C" RFDEVICEPROXYDLL RFLanDetector* CALLING_CONVENTION CreateRFLanDetector()	
{
	RFLanDetector* rf = new RFLanDetector();
	return rf;
}

extern "C" RFDEVICEPROXYDLL void CALLING_CONVENTION DisposeRFLanDetector(RFLanDetector* rf)
{	
	rf->~RFLanDetector();
	rf = NULL;
}

extern "C" RFDEVICEPROXYDLL int CALLING_CONVENTION RFLanDetector_Search(RFLanDetector* rf, USHORT type, int timeout)	
{
	return rf->Search(type, timeout);
}

extern "C" RFDEVICEPROXYDLL void CALLING_CONVENTION RFLanDetector_Clear(RFLanDetector* rf)	
{
	return rf->Clear();
}

extern "C" RFDEVICEPROXYDLL int CALLING_CONVENTION RFLanDetector_GetSize(RFLanDetector* rf)	
{
	return rf->GetSize();
}

extern "C" RFDEVICEPROXYDLL LPUDP_DEVINFOBLOCK_PC CALLING_CONVENTION RFLanDetector_GetDevBlock(RFLanDetector* rf, const int index)	
{
	return rf->GetDevBlock(index);
}

